package com.yonyou.brigade.third_parties.huazhu.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author houyb
 * @since 2020-06-18
 */
@TableName("hz_user")
public class HzUser extends Model<HzUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 租户id
     */
    private String tenant;
    /**
     * 员工编号
     */
    @TableField("person_code")
    private String personCode;
    /**
     * 员工姓名
     */
    @TableField("employee_name")
    private String employeeName;
    /**
     * 证件类型：C01 居民身份证（内宾）
C02 户口薄（内宾）
C03 军官证（内宾）
C04 警官证（内宾）
C05 士兵证（内宾）
C06 护照
C54 中华人民共和国旅行证
C55 台湾居民来往大陆通行证
C59 中华人民共和国入出境通行证
C62 港澳居民来往内地通行证
C65 驾驶证
     */
    @TableField("certificates_type")
    private String certificatesType;
    /**
     * 证件号
     */
    @TableField("certificates_number")
    private String certificatesNumber;
    /**
     * 手机号
     */
    private String phone;

    /**
     * 是否有效，0无效1有效
     */
    private String valid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getPersonCode() {
        return personCode;
    }

    public void setPersonCode(String personCode) {
        this.personCode = personCode;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getCertificatesType() {
        return certificatesType;
    }

    public void setCertificatesType(String certificatesType) {
        this.certificatesType = certificatesType;
    }

    public String getCertificatesNumber() {
        return certificatesNumber;
    }

    public void setCertificatesNumber(String certificatesNumber) {
        this.certificatesNumber = certificatesNumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getValid() {
        return valid;
    }

    public void setValid(String valid) {
        this.valid = valid;
    }

    public static final String ID = "id";

    public static final String TENANT = "tenant";

    public static final String PERSON_CODE = "person_code";

    public static final String EMPLOYEE_NAME = "employee_name";

    public static final String CERTIFICATES_TYPE = "certificates_type";

    public static final String CERTIFICATES_NUMBER = "certificates_number";

    public static final String PHONE = "phone";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HzUser{" +
        "id=" + id +
        ", tenant=" + tenant +
        ", personCode=" + personCode +
        ", employeeName=" + employeeName +
        ", certificatesType=" + certificatesType +
        ", certificatesNumber=" + certificatesNumber +
        ", phone=" + phone +
        "}";
    }
}
